<template>
	<view>
		<!-- 采购金额修改 -->
		<purchase-money :forms="forms" v-if="type == '采购金额'"></purchase-money>
		<!-- 供应商白名单 -->
		<Whitelist :forms="forms" v-if="type == '采购供应商'"></Whitelist>
		<!-- 生产非正常领料 -->
		<applyPro-issue :forms="forms" v-if="type == '非正常领料单'"></applyPro-issue>
		<!-- 异常采购申请 -->
		<purchasePro-apply :forms="forms" v-if="type == '异常采购申请'"></purchasePro-apply>
		<!-- 废弃任务单 -->
		<discard-apply :forms="forms" v-if="type == '废弃任务单'"></discard-apply>
	</view>
</template>

<script>
	import PurchaseMoney from "./components/PurchaseMoney.vue";
	import DiscardApply from "./components/DiscardApply.vue";
	import Whitelist from "./components/Whitelist.vue";
	import ApplyProIssue from "./components/ApplyProIssue.vue";
	import PurchaseProApply from "./components/PurchaseProApply.vue";
	export default {
		name: "originalForm",
		components: {
			PurchaseMoney,
			DiscardApply,
			Whitelist,
			ApplyProIssue,
			PurchaseProApply
		},
		data() {
			return {

			};
		},
		props: {
			forms: {
				type: Object,
				default: () => {
					return {}
				}
			},
			value: {
				type: Object,
				default: () => {
					return {}
				}
			},
			type: {
				type: String,
			}
		},
		mounted() {}
	}
</script>

<style>

</style>